/*
* Copyright 2025 NXP
* NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in
* accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing,
* activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to
* comply with and are bound by, such license terms.  If you do not agree to be bound by the applicable license
* terms, then you may not retain, install, activate or otherwise use the software.
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "widgets_init.h"
#include "custom.h"



int home_analog_analog_clock_1_hour_value = 3;
int home_analog_analog_clock_1_min_value = 32;
int home_analog_analog_clock_1_sec_value = 2;
void setup_scr_home_analog(lv_ui *ui)
{
    //Write codes home_analog
    ui->home_analog = lv_obj_create(NULL);
    lv_obj_set_size(ui->home_analog, 480, 480);
    lv_obj_set_scrollbar_mode(ui->home_analog, LV_SCROLLBAR_MODE_OFF);

    //Write style for home_analog, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->home_analog, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_color(ui->home_analog, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_grad_dir(ui->home_analog, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_src(ui->home_analog, "S:/res/image/img_bg_analog.bin", LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_opa(ui->home_analog, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_image_recolor_opa(ui->home_analog, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_step_arc
    ui->home_analog_step_arc = lv_arc_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_step_arc, 58, 101);
    lv_obj_set_size(ui->home_analog_step_arc, 394, 366);
    lv_obj_add_flag(ui->home_analog_step_arc, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_arc_set_mode(ui->home_analog_step_arc, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->home_analog_step_arc, 0, 100);
    lv_arc_set_bg_angles(ui->home_analog_step_arc, 60, 120);
    lv_arc_set_value(ui->home_analog_step_arc, 70);
    lv_arc_set_rotation(ui->home_analog_step_arc, 0);

    //Write style for home_analog_step_arc, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->home_analog_step_arc, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->home_analog_step_arc, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->home_analog_step_arc, lv_color_hex(0x777777), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->home_analog_step_arc, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_step_arc, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_step_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for home_analog_step_arc, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->home_analog_step_arc, 8, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->home_analog_step_arc, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->home_analog_step_arc, lv_color_hex(0xFF4818), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->home_analog_step_arc, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for home_analog_step_arc, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->home_analog_step_arc, 0, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes home_analog_battery_arc
    ui->home_analog_battery_arc = lv_arc_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_battery_arc, 58, 4);
    lv_obj_set_size(ui->home_analog_battery_arc, 399, 366);
    lv_obj_add_flag(ui->home_analog_battery_arc, LV_OBJ_FLAG_GESTURE_BUBBLE);
    lv_arc_set_mode(ui->home_analog_battery_arc, LV_ARC_MODE_NORMAL);
    lv_arc_set_range(ui->home_analog_battery_arc, 0, 100);
    lv_arc_set_bg_angles(ui->home_analog_battery_arc, 238, 300);
    lv_arc_set_value(ui->home_analog_battery_arc, 70);
    lv_arc_set_rotation(ui->home_analog_battery_arc, 0);

    //Write style for home_analog_battery_arc, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->home_analog_battery_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_border_width(ui->home_analog_battery_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_width(ui->home_analog_battery_arc, 8, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->home_analog_battery_arc, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->home_analog_battery_arc, lv_color_hex(0x777777), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->home_analog_battery_arc, true, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_battery_arc, 6, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_battery_arc, 4, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_battery_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_battery_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_battery_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_battery_arc, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for home_analog_battery_arc, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_arc_width(ui->home_analog_battery_arc, 8, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_opa(ui->home_analog_battery_arc, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_color(ui->home_analog_battery_arc, lv_color_hex(0x1000ff), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_arc_rounded(ui->home_analog_battery_arc, true, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for home_analog_battery_arc, Part: LV_PART_KNOB, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->home_analog_battery_arc, 0, LV_PART_KNOB|LV_STATE_DEFAULT);

    //Write codes home_analog_nxp_log
    ui->home_analog_nxp_log = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_nxp_log, 489, 226);
    lv_obj_set_size(ui->home_analog_nxp_log, 78, 23);
    lv_obj_add_flag(ui->home_analog_nxp_log, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_nxp_log, "S:/res/image/img_nxp.bin");
    lv_image_set_pivot(ui->home_analog_nxp_log, 50,50);
    lv_image_set_rotation(ui->home_analog_nxp_log, 0);

    //Write style for home_analog_nxp_log, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_nxp_log, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_nxp_log, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_step_icon
    ui->home_analog_step_icon = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_step_icon, 198, 412);
    lv_obj_set_size(ui->home_analog_step_icon, 19, 24);
    lv_obj_add_flag(ui->home_analog_step_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_step_icon, "S:/res/image/icn_step_red.bin");
    lv_image_set_pivot(ui->home_analog_step_icon, 50,50);
    lv_image_set_rotation(ui->home_analog_step_icon, 0);

    //Write style for home_analog_step_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_step_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_step_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_step_text
    ui->home_analog_step_text = lv_label_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_step_text, 226, 412);
    lv_obj_set_size(ui->home_analog_step_text, 71, 24);
    lv_label_set_text(ui->home_analog_step_text, "1526");
    lv_label_set_long_mode(ui->home_analog_step_text, LV_LABEL_LONG_WRAP);

    //Write style for home_analog_step_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->home_analog_step_text, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->home_analog_step_text, lv_font_montserratMedium_25_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->home_analog_step_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->home_analog_step_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_step_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_temp_text
    ui->home_analog_temp_text = lv_label_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_temp_text, 79, 304);
    lv_obj_set_size(ui->home_analog_temp_text, 56, 24);
    lv_label_set_text(ui->home_analog_temp_text, "26°");
    lv_label_set_long_mode(ui->home_analog_temp_text, LV_LABEL_LONG_WRAP);

    //Write style for home_analog_temp_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->home_analog_temp_text, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->home_analog_temp_text, lv_font_montserratMedium_25_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->home_analog_temp_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->home_analog_temp_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_temp_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_weather_icon
    ui->home_analog_weather_icon = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_weather_icon, 73, 254);
    lv_obj_set_size(ui->home_analog_weather_icon, 48, 39);
    lv_obj_add_flag(ui->home_analog_weather_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_weather_icon, "S:/res/image/icn_weather_1.bin");
    lv_image_set_pivot(ui->home_analog_weather_icon, 50,50);
    lv_image_set_rotation(ui->home_analog_weather_icon, 0);

    //Write style for home_analog_weather_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_weather_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_recolor(ui->home_analog_weather_icon, lv_color_hex(0x777777), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_weather_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_week_day
    ui->home_analog_week_day = lv_label_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_week_day, 64, 175);
    lv_obj_set_size(ui->home_analog_week_day, 80, 29);
    lv_label_set_text(ui->home_analog_week_day, "WED");
    lv_label_set_long_mode(ui->home_analog_week_day, LV_LABEL_LONG_WRAP);

    //Write style for home_analog_week_day, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->home_analog_week_day, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->home_analog_week_day, lv_font_montserratMedium_25_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->home_analog_week_day, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->home_analog_week_day, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_week_day, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_date_text
    ui->home_analog_date_text = lv_label_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_date_text, 64, 144);
    lv_obj_set_size(ui->home_analog_date_text, 89, 24);
    lv_label_set_text(ui->home_analog_date_text, "05/15");
    lv_label_set_long_mode(ui->home_analog_date_text, LV_LABEL_LONG_WRAP);

    //Write style for home_analog_date_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->home_analog_date_text, lv_color_hex(0x777777), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->home_analog_date_text, lv_font_montserratMedium_25_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->home_analog_date_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->home_analog_date_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_date_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_battery_icon
    ui->home_analog_battery_icon = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_battery_icon, 189, 41);
    lv_obj_set_size(ui->home_analog_battery_icon, 19, 24);
    lv_obj_add_flag(ui->home_analog_battery_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_battery_icon, "S:/res/image/icn_flash_blue.bin");
    lv_image_set_pivot(ui->home_analog_battery_icon, 50,50);
    lv_image_set_rotation(ui->home_analog_battery_icon, 0);

    //Write style for home_analog_battery_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_battery_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_battery_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_battery_text
    ui->home_analog_battery_text = lv_label_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_battery_text, 226, 41);
    lv_obj_set_size(ui->home_analog_battery_text, 71, 24);
    lv_obj_add_flag(ui->home_analog_battery_text, LV_OBJ_FLAG_CLICKABLE);
    lv_label_set_text(ui->home_analog_battery_text, "86%");
    lv_label_set_long_mode(ui->home_analog_battery_text, LV_LABEL_LONG_WRAP);

    //Write style for home_analog_battery_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_border_width(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_radius(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_color(ui->home_analog_battery_text, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->home_analog_battery_text, lv_font_montserratMedium_25_bin, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->home_analog_battery_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_letter_space(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_line_space(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_text_align(ui->home_analog_battery_text, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_bg_opa(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_top(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_right(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_bottom(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_pad_left(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_battery_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_dot_list
    ui->home_analog_dot_list = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_dot_list, 445, 170);
    lv_obj_set_size(ui->home_analog_dot_list, 12, 142);
    lv_obj_add_flag(ui->home_analog_dot_list, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_dot_list, "S:/res/image/img_menu.bin");
    lv_image_set_pivot(ui->home_analog_dot_list, 50,50);
    lv_image_set_rotation(ui->home_analog_dot_list, 0);

    //Write style for home_analog_dot_list, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_dot_list, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_dot_list, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_img_dot
    ui->home_analog_img_dot = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_img_dot, 445, 170);
    lv_obj_set_size(ui->home_analog_img_dot, 8, 8);
    lv_obj_add_flag(ui->home_analog_img_dot, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_img_dot, "S:/res/image/dot.bin");
    lv_image_set_pivot(ui->home_analog_img_dot, 50,50);
    lv_image_set_rotation(ui->home_analog_img_dot, 0);

    //Write style for home_analog_img_dot, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_img_dot, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_img_dot, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_analog_clock_1
    static bool home_analog_analog_clock_1_timer_enabled = false;
    static const char * home_analog_analog_clock_1_hour_ticks[] = {"12", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", NULL};
    ui->home_analog_analog_clock_1 = lv_scale_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_analog_clock_1, 14, 14);
    lv_obj_set_size(ui->home_analog_analog_clock_1, 446, 446);
    lv_scale_set_mode(ui->home_analog_analog_clock_1, LV_SCALE_MODE_ROUND_INNER);
    lv_scale_set_angle_range(ui->home_analog_analog_clock_1, 360U);
    lv_scale_set_range(ui->home_analog_analog_clock_1, 0U, 60U);
    lv_scale_set_rotation(ui->home_analog_analog_clock_1, 270U);
    lv_obj_set_style_radius(ui->home_analog_analog_clock_1, LV_RADIUS_CIRCLE, LV_PART_MAIN);
    lv_obj_set_style_clip_corner(ui->home_analog_analog_clock_1, true, LV_PART_MAIN);
    lv_obj_set_style_arc_width(ui->home_analog_analog_clock_1, 0, LV_PART_MAIN);
    lv_scale_set_label_show(ui->home_analog_analog_clock_1, false);

    lv_scale_set_total_tick_count(ui->home_analog_analog_clock_1, 61);

    lv_scale_set_major_tick_every(ui->home_analog_analog_clock_1, 5);
    lv_scale_set_text_src(ui->home_analog_analog_clock_1, home_analog_analog_clock_1_hour_ticks);
    lv_obj_update_layout(ui->home_analog_analog_clock_1);
    ui->home_analog_analog_clock_1_hour_needle = lv_image_create(ui->home_analog_analog_clock_1);
    lv_image_set_src(ui->home_analog_analog_clock_1_hour_needle, "S:/res/image/img_clockwise_hour.bin");
    lv_obj_align(ui->home_analog_analog_clock_1_hour_needle, LV_ALIGN_CENTER, 9 - 10, 49 - 0);
    lv_image_set_pivot(ui->home_analog_analog_clock_1_hour_needle, 10, 0);
    lv_scale_set_image_needle_value(ui->home_analog_analog_clock_1, ui->home_analog_analog_clock_1_hour_needle, home_analog_analog_clock_1_hour_value * 5);
    ui->home_analog_analog_clock_1_min_needle = lv_image_create(ui->home_analog_analog_clock_1);
    lv_image_set_src(ui->home_analog_analog_clock_1_min_needle, "S:/res/image/img_clockwise_min.bin");
    lv_obj_align(ui->home_analog_analog_clock_1_min_needle, LV_ALIGN_CENTER, 9 - 10, 79 - 0);
    lv_image_set_pivot(ui->home_analog_analog_clock_1_min_needle, 10, 0);
    lv_scale_set_image_needle_value(ui->home_analog_analog_clock_1, ui->home_analog_analog_clock_1_min_needle, home_analog_analog_clock_1_min_value);
    ui->home_analog_analog_clock_1_sec_needle = lv_image_create(ui->home_analog_analog_clock_1);
    lv_image_set_src(ui->home_analog_analog_clock_1_sec_needle, "S:/res/image/img_clockwise_sec.bin");
    lv_obj_align(ui->home_analog_analog_clock_1_sec_needle, LV_ALIGN_CENTER, 16 - 15, 90 - 24);
    lv_image_set_pivot(ui->home_analog_analog_clock_1_sec_needle, 15, 24);
    lv_scale_set_image_needle_value(ui->home_analog_analog_clock_1, ui->home_analog_analog_clock_1_sec_needle, home_analog_analog_clock_1_sec_value);
    // create timer
    if (!home_analog_analog_clock_1_timer_enabled) {
        lv_timer_create(home_analog_analog_clock_1_timer, 1000, NULL);
        home_analog_analog_clock_1_timer_enabled = true;
    }

    //Write style for home_analog_analog_clock_1, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_bg_opa(ui->home_analog_analog_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_shadow_width(ui->home_analog_analog_clock_1, 0, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write style for home_analog_analog_clock_1, Part: LV_PART_INDICATOR, State: LV_STATE_DEFAULT.
    lv_obj_set_style_text_color(ui->home_analog_analog_clock_1, lv_color_hex(0x000000), LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_font(ui->home_analog_analog_clock_1, lv_font_montserratMedium_17_bin, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_text_opa(ui->home_analog_analog_clock_1, 255, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_line_width(ui->home_analog_analog_clock_1, 0, LV_PART_INDICATOR|LV_STATE_DEFAULT);
    lv_obj_set_style_length(ui->home_analog_analog_clock_1, 0, LV_PART_INDICATOR|LV_STATE_DEFAULT);

    //Write style for home_analog_analog_clock_1, Part: LV_PART_ITEMS, State: LV_STATE_DEFAULT.
    lv_obj_set_style_line_width(ui->home_analog_analog_clock_1, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);
    lv_obj_set_style_length(ui->home_analog_analog_clock_1, 0, LV_PART_ITEMS|LV_STATE_DEFAULT);

    //Write codes home_analog_message_icon
    ui->home_analog_message_icon = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_message_icon, 366, 328);
    lv_obj_set_size(ui->home_analog_message_icon, 23, 29);
    lv_obj_add_flag(ui->home_analog_message_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_message_icon, "S:/res/image/icn_message.bin");
    lv_image_set_pivot(ui->home_analog_message_icon, 50,50);
    lv_image_set_rotation(ui->home_analog_message_icon, 0);

    //Write style for home_analog_message_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_message_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_message_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_sport_icon
    ui->home_analog_sport_icon = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_sport_icon, 366, 123);
    lv_obj_set_size(ui->home_analog_sport_icon, 23, 29);
    lv_obj_add_flag(ui->home_analog_sport_icon, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_sport_icon, "S:/res/image/icn_sport.bin");
    lv_image_set_pivot(ui->home_analog_sport_icon, 50,50);
    lv_image_set_rotation(ui->home_analog_sport_icon, 0);

    //Write style for home_analog_sport_icon, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_sport_icon, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_sport_icon, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_message_text
    ui->home_analog_message_text = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_message_text, 363, 333);
    lv_obj_set_size(ui->home_analog_message_text, 84, 84);
    lv_obj_add_flag(ui->home_analog_message_text, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_message_text, "S:/res/image/text_message.bin");
    lv_image_set_pivot(ui->home_analog_message_text, 50,50);
    lv_image_set_rotation(ui->home_analog_message_text, -30);

    //Write style for home_analog_message_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_message_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_message_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //Write codes home_analog_sport_text
    ui->home_analog_sport_text = lv_image_create(ui->home_analog);
    lv_obj_set_pos(ui->home_analog_sport_text, 386, 93);
    lv_obj_set_size(ui->home_analog_sport_text, 60, 60);
    lv_obj_add_flag(ui->home_analog_sport_text, LV_OBJ_FLAG_CLICKABLE);
    lv_image_set_src(ui->home_analog_sport_text, "S:/res/image/text_sport.bin");
    lv_image_set_pivot(ui->home_analog_sport_text, 50,50);
    lv_image_set_rotation(ui->home_analog_sport_text, 60);

    //Write style for home_analog_sport_text, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
    lv_obj_set_style_image_recolor_opa(ui->home_analog_sport_text, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
    lv_obj_set_style_image_opa(ui->home_analog_sport_text, 255, LV_PART_MAIN|LV_STATE_DEFAULT);

    //The custom code of home_analog.


    //Update current screen layout.
    lv_obj_update_layout(ui->home_analog);

    //Init events for screen.
    events_init_home_analog(ui);
}
